package org.example.ymcc.dto;

import lombok.Data;
import lombok.NonNull;
import org.example.ymcc.domain.Course;
import org.example.ymcc.domain.CourseDetail;
import org.example.ymcc.domain.CourseMarket;
import org.example.ymcc.domain.CourseResource;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class CourseAddDto {
    @NotNull(message = "参数异常")
    private Course course;
    @NotNull(message = "参数异常")
    private CourseDetail courseDetail;
    @NotNull(message = "参数异常")
    private CourseMarket courseMarket;
    @NotNull(message = "参数异常")
    private CourseResource courseResource;

    private List<Long> teacharIds;
}
